//
//  GWBannersModel.m
//  GiftWanted
//
//  Created by lanou on 15/11/7.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "GWBannersModel.h"

@implementation GWBannersModel
- (instancetype)init {
    self = [super init];
    if (self) {
        _target = [[GWTargetModel alloc] init];
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"target"]) {
        [_target setValuesForKeysWithDictionary:value];
    } else {
        [super setValue:value forKey:key];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    if ([key isEqualToString:@"id"]) {
        _id_s = value;
    }
}

@end
